package com.mysher.devlib.uvc;

import com.mvcframework.mvccamerabase.FormatType;

public interface PreviewListener {

    /**
     * 摄像头选择的格式出图
     */
    void onCameraPreview(byte[] frame, int width, int height, FormatType type);

    /**
     * yuv nv12出图 ,在设置surface和设置解码情况下才会有回调
     */
    void onDecode(byte[] nv12, int width, int height, FormatType formatType);


}
